package com.Jano.service;

import com.Jano.entity.Question;

import java.util.List;

/**
 * description: QuestionService <br>
 * date: 2022/6/6 6:06 PM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 * @author zoumaoji
 */
public interface QuestionService {

    /**
     * 创建调查问卷中的问题
     * @param questionnaireId
     * @param content
     */
    void createQuestion(int questionnaireId,String content);

    /**
     * 得到调查问卷的所有问题
     * @param questionnaireId
     * @return
     */
    List<Question> getAllQuestionByQuestionnaireId(int questionnaireId);

    /**
     * 找到指定的题目
     * @param questionnaireId
     * @param content
     * @return
     */
    Question getQuestionByQuestionnaireIdAndContent(int questionnaireId,String content);
}
